/*
 *@functionName: 全局注册指令
 *@description:
 *@author: tangzhaofeng
 *@date: 2024-01-02 22:48:54
 *@version: V1.0
*/
export default{
    install(app){
        const directives = import.meta.glob('./modules/*.js',{ eager: true });
        for(const [key,value] of Object.entries(directives)){
            const arr = key.split('/')
            const name = arr[arr.length - 1].replace('.js','')
            app.directive(name,value.default)
        }
    }
}